home *** CD-ROM | disk | FTP | other *** search
/ Now Utilities 6 / Now Utilities 6.0 (Now Software)(1996).bin / Now Utilities Plug Ins ƒ / About Now Utilties Plugs Ins next >
Text File  |  1996-03-21  |  2KB  |  38 lines

  1. Now Utilities™ 6.0 Plug Ins SDK
  2. ©1996 Now Software, Inc.
  3.  
  4. A lot of the power in Now Utilities 6.0 comes from Now Tabs™ and Now Shortcuts™ ability to accept plug in code modules (Plug Ins), that extend their functionality.
  5.  
  6. A Plug In might do something simple like duplicate a file or something more complex such as display a list of duplicate files.  There are few limits to what Plug Ins can do.
  7.  
  8. Now Tabs and Now Shortcuts use the same API (whew!).  Now Tabs Plug Ins are accessed from the "Now" menu in the tab bar.  Now Shortcuts Plug Ins are accessed when you hold down a modifier key and click on a file, group of files, folder or group of folders in the Finder.  Both Now Tabs and Now Shortcuts display each Plug In's name in a menu.  If that menu item is selected, the Plug In is called.
  9.  
  10. You can write your own Plug Ins for Now Utilities 6.0 with the API detailed below.  We have provided a lot of sample code for you to start from.  Be careful though - Milt and I have found that writing Plug Ins is incredibly addicting.  We're not sure whether its because they're so easy to write (15 minutes to an hour in most cases) or because it's nice to be able to finish a coding project on time for a change.  Anyway, we think you'll have fun with writing them.
  11.  
  12. To begin writing your own Plug Ins:
  13.  
  14. • Move the Now Utilities Plug In Stationery to your MetroWerks Project Stationery folder.
  15.  
  16. • Create a new project using the Now Utilities Plug In Stationery.
  17.  
  18. • Open the Preferences dialog and:
  19.   -- Open the Project pane and set the Plug In name to the name of your Plug In
  20.  
  21. • Copy one of the sample project "Main.c" and "Main.h" into your project.
  22.  
  23. • Open "Main.h" and reset the Plug In Type define, e.g.,
  24.   -- #define    kLabelPlugInType    'Labl'
  25.  
  26. • Open "Main.c" and reset the Plug In Type in main and PrepareMenu
  27.   -- plugInInformation->plugInType = your Plug In Type
  28.  
  29. • Add your own code and compile.  Then drop your completed Plug In into the Now Tabs Plug Ins Folder or the Now Shortcuts Plug Ins Folder in the Control Panels Folder and restart - the next time you use Now Tabs or Now Shortcuts your Plug In will be in the list.
  30.  
  31. Enjoy, the Now Utilities Development Team,
  32.  
  33. utilities@nowsoft.com
  34.  
  35. The Now Plug Ins API was written by Ando Sonenblick, author of Now AutoType, Now Tabs, Now Shortcuts and Now Save.
  36.  
  37.  
  38.